const express = require('express');
var app = express();
var server = app.listen(3000,(req,res)=>{
  console.log('服务器启动成功...');
});
//路由传参
//get  /detail
app.get('/detail/:lid/:name', (req,res)=>{
  //获取客户端所传递的参数
  console.log(req.params);
  res.send('this is detail page');
});







